﻿using System;
using System.Collections.Generic;
using System.CodeDom.Compiler;

namespace SWF
{
    public struct WaitForFrame : IAction
    {
        // this is 'ifFrameLoaded' in swf, deprecated...
        public ActionKind ActionId { get { return ActionKind.WaitForFrame; } }
        public uint Version { get { return 3; } }
        public uint Length { get { return 6; } }

        public int Frame;
        public uint SkipCount;

        public WaitForFrame(SwfReader r)
        {
            Frame = r.GetUI16();
            SkipCount = (uint)r.GetByte();
        }

        public void Execute(Runtime.Clip clip, Stack<object> stack, Dictionary<string, object> variables, List<string> constantPool, Dictionary<string, List<IAction>> functionmap)
        {
        }
    }
}
